export default {
  // 点击下一题，记录答案id，判断是否是最后一题，如果不是则跳转下一题
  addNum ({ commit, state }, id) {
    commit('REMBER_ANSWER', id)
    if (state.itemNum < state.itemDetail.length) {
      commit('ADD_ITEMNUM', 1)
    }
  },
  initializeData ({ commit }) {
    commit('INITIALIZE_DATA')
  },
  countScore ({ commit }) {
    commit('COUNT_SCORE')
  }
}
